<template>
  <el-container style="height: 100vh; border: 1px solid #eee">
    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <el-menu
        router
        :default-openeds="['1', '3']"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
      >
        <el-submenu index="1">
          <template slot="title"
            ><i class="el-icon-message"></i>内容管理</template
          >
          <el-menu-item-group>
            <template slot="title">分类</template>
            <el-menu-item index="/categories/create">新建分类</el-menu-item>
            <el-menu-item index="/categories/list">分类列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">装备分类</template>
            <el-menu-item index="/items/create">新建装备</el-menu-item>
            <el-menu-item index="/items/list">装备列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">英雄分类</template>
            <el-menu-item index="/heros/create">新建英雄</el-menu-item>
            <el-menu-item index="/heros/list">英雄列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">文章分类</template>
            <el-menu-item index="/Articles/create">新建文章</el-menu-item>
            <el-menu-item index="/Articles/list">文章列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">攻略中心文章分类</template>
            <el-menu-item index="/glcenter/create">新建文章</el-menu-item>
            <el-menu-item index="/glcenter/list">文章列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">攻略中心视频分类</template>
            <el-menu-item index="/shipin/create">新建视频</el-menu-item>
            <el-menu-item index="/shipin/list">视频列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">广告位分类</template>
            <el-menu-item index="/ads/create">新建广告位</el-menu-item>
            <el-menu-item index="/ads/list">广告位列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">管理员列表</template>
            <el-menu-item index="/admin_user/create">新建管理员</el-menu-item>
            <el-menu-item index="/admin_user/list">管理员列表</el-menu-item>
          </el-menu-item-group>

          <el-menu-item-group>
            <template slot="title">普通用户管理</template>
            <el-menu-item index="/user/list">普通用户列表</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>

    <el-container>
      <el-header class="topheader">
        <img class="rightimg" src="../assets/1.png" alt="" />
        <span class="name">王者荣耀后台管理系统</span>
      </el-header>

      <el-main>
        <router-view :key="$route.path" />
      </el-main>
    </el-container>
  </el-container>
</template>
<style>
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
.topheader {
  background: #11131f;
}
.name {
  font-size: 20px;
  color: #fff;
}
.rightimg {
  vertical-align: middle;
  height: 55px;
}
</style>

<script>
export default {};
</script>
